/ Assembly List / LJCWinFormControls / ControlCommon / AverageCharWidth

Namespace - LJCWinFormControls


Parameters
control - The Control value.
textLength - The text length.
upperCount - The estimated uppercase count.

Returns

The Average character width for the specified textLength.

Syntax

C#
public static Int32 AverageCharWidth(Control control, Int32 textLength, Int32 upperCount = 0)

Use text consisting of possible characters (A-Z) or (a-z).

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.